package com.dmjj.dmjjxt.service.impl;

import com.dmjj.common.base.BaseMapper;
import com.dmjj.common.base.BaseServiceImpl;
import com.dmjj.dmjjxt.dao.CategoryStyleMapper;
import com.dmjj.dmjjxt.dto.CategoryStyleDTO;
import com.dmjj.dmjjxt.service.CategoryStyleService;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.stereotype.Service;
import java.util.List;


/**
 * 产品品类-风格表业务处理接口
 * @Author zhangxue
 * @Date 2019-04-11 14:13:52
 */
@Service
public class CategoryStyleServiceImpl extends BaseServiceImpl<CategoryStyleDTO, Long> implements CategoryStyleService {

    private static final Log LOGGER = LogFactory.getLog(CategoryStyleServiceImpl.class);

    @Autowired
    private CategoryStyleMapper mapper;

    @Override
    protected BaseMapper<CategoryStyleDTO, Long> getMapper() {
        return mapper;
    }

    /**
     * 产品品类-风格表列表
     * @Author zhangxue
     * @Date 2019-04-11 14:13:52
     * @Param
     * @Return
     */
    @Override
    public List<CategoryStyleDTO> list4Page(CategoryStyleDTO entity, Integer pageNum, Integer... pageSize) {
        return super.list4Page(entity, pageNum, pageSize);
    }

    /**
     * 产品品类-风格表列表（无分页）
     * @Author zhangxue
     * @Date 2019-04-11 14:13:52
     * @Param
     * @Return
     */
    @Override
    public List<CategoryStyleDTO> listByCondition(CategoryStyleDTO entity) {
        return super.listByCondition(entity);
    }

    /**
     * 查询产品品类-风格表详情信息
     * @Author zhangxue
     * @Date 2019-04-11 14:13:52
     * @Param
     * @Return
     */
    @Override
    public CategoryStyleDTO queryOneByPk(Long id) {
        return super.queryOneByPk(id);
    }

    /**
     * 保存产品品类-风格表信息
     * @Author zhangxue
     * @Date 2019-04-11 14:13:52
     * @Param
     * @Return
     */
    @Override
    @Transactional
    public Long save(CategoryStyleDTO entity) {
        return super.save(entity);
    }

    /**
     * 删除产品品类-风格表信息
     * @Author zhangxue
     * @Date 2019-04-11 14:13:52
     * @Param
     * @Return
     */
    @Override
    @Transactional
    public Integer delete(Long id) {
        return super.delete(id);
    }
}
